include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/package.mk

PKG_NAME:=skysoft_qos
PKG_VERSION:=1
PKG_BUILD_DIR:= $(BUILD_DIR)/$(PKG_NAME)

define Package/skysoft_qos
  SECTION:=Skysoft
  CATEGORY:=Skysoft Proprietary software
  TITLE:=Skysoft qos
  DEPENDS:= +libuci +libpthread +librt
endef

define Package/skysoft_qos/Description
  This package contains skysoft application for QCA
endef


define Build/Prepare 
	mkdir -p $(PKG_BUILD_DIR) 
	$(CP) ./src/* $(PKG_BUILD_DIR)/ 
	$(CP) ./files $(PKG_BUILD_DIR)/ -rf
endef 

define Package/skysoft_qos/install 
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/skyqos $(1)/usr/sbin/skyqos
	$(INSTALL_DIR) $(1)/etc/config
	$(INSTALL_BIN) ./files/qos.config $(1)/etc/config/qos
	$(INSTALL_DIR) $(1)/etc/init.d
	$(INSTALL_BIN) ./files/qos.init $(1)/etc/init.d/qos
endef



$(eval $(call BuildPackage,skysoft_qos))
